<?php
use yii\helpers\Url;

$this->title = "选择语言 Please choose language";
?>
<style>
    .main{text-align: center;background-color: ;}
    .option{color: red}
</style>
<div class="section">
    <div class="main">
        <select style="width: 350px" onchange="location.href=this.options[this.selectedIndex].value;">
            <option>请选择语言(Please choose language)</option>
            <option value="<?=Url::to(['site/language', 'lang'=>'zh-CN'])?>">简体中文</option>
            <option value="<?=Url::to(['site/language', 'lang'=>'en-US'])?>">English</option>
        </select>
    </div>
</div>
